<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <input id="c-user_id" data-rule="required" name="row[user_id]" type="hidden" value="{$row.user_id}">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Username')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" class="form-control" name="row[phone]" type="text" value="{$row.phone}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Area')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-area_ids" data-rule="required" class="form-control" name="row[area_ids]" type="hidden" value="{$row.area_ids}">
            <div class="col-xs-3">
                <input name="row[category1]" value="{$row.area_ids[0]}" data-params='{"custom[pid]":"0"}' id="c-category1" data-source="/admin/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L1')}" type="text">
            </div>
            <div class="col-xs-3">
                <input name="row[category2]" value="{$row.area_ids[1]}" id="c-category2" data-source="/admin/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L2')}" type="text">
            </div>
            <div class="col-xs-3">
                <input name="row[category3]" value="{$row.area_ids[2]}" id="c-category3" data-source="/admin/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L3')}" type="text">
            </div>
            <div class="col-xs-3">
                <input name="row[category4]" value="{$row.area_ids[3]}" id="c-category4" data-source="/admin/mall/oper/area/selectpage" class="form-control selectpage" placeholder="{:__('Category L4')}" type="text">
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Useraddress')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" value="{$row.address}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isdefault')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-isDefault" name="row[isDefault]" type="hidden" value="{$row.isDefault}">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher disabled" data-input-id="c-isDefault" data-yes="1" data-no="0" >
                <i class="fa fa-toggle-on text-success {if !$row.isDefault}fa-flip-horizontal text-gray{/if} fa-2x"></i>
            </a>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
